package com.shanzmoo.db.stm.service.impl;

import com.shanzmoo.db.stm.entity.StmMemberRoleEntity;
import com.shanzmoo.db.stm.entity.StmSysRoleEntity;
import com.shanzmoo.db.stm.entity.vo.StmMemberRoleVO;
import com.shanzmoo.db.stm.entity.query.StmMemberRoleQuery;
import com.shanzmoo.db.stm.mapper.StmMemberRoleMapper;
import com.shanzmoo.db.stm.service.IStmMemberRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仓储用户系统用户角色关联表 服务实现类
 *
 * @author Gzhao 2021-03-10
 */
@Service
public class StmMemberRoleServiceImpl extends ServiceImpl<StmMemberRoleMapper, StmMemberRoleEntity>
        implements IStmMemberRoleService {

    @Override
    public List<StmMemberRoleVO> queryPageList(StmMemberRoleQuery query) {
        return baseMapper.queryPageList(query);
    }

    @Override
    public List<StmSysRoleEntity> getUserRoles(Integer memberId) {
        return baseMapper.getUserRoles(memberId);
    }
}
